package cn.xshi.bpm.service.impl;

import cn.xshi.bpm.service.LcHisMultiService;
import cn.xshi.bpm.dao.LcHisMultiDao;
import cn.xshi.bpm.model.LcHisMulti;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
 * @Desc 会签节点历史人员
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Slf4j
@Service
public class LcHisMultiServiceImpl implements LcHisMultiService {

    @Resource
    LcHisMultiDao lcHisMultiDao;

    /**
     * 查询列表
     * @param lcHisMulti
     * @return
     */
    public List<LcHisMulti> getLcHisMultiListByCondition(LcHisMulti lcHisMulti){
        return lcHisMultiDao.getLcHisMultiListByCondition(lcHisMulti);
    }

    /**
     * 新增
     * @param lcHisMulti
     * @return
     */
    public int addLcHisMulti(LcHisMulti lcHisMulti){
        return lcHisMultiDao.addLcHisMulti(lcHisMulti);
    }

    /**
     * 批量新增
     * @param lcHisMultis
     * @return
     */
    public int addBatchLcHisMulti(List<LcHisMulti> lcHisMultis){
        return lcHisMultiDao.addBatchLcHisMulti(lcHisMultis);
    }

    /**
     * 删除
     * @param condition
     * @return
     */
    public int delLcHisMulti(Map<String,Object> condition){
        return lcHisMultiDao.delLcHisMulti(condition);
    }

    /**
     * 获取最大批次
     * @param lcHisMulti
     * @return
     */
    public Integer getMaxBatch(LcHisMulti lcHisMulti){
        return lcHisMultiDao.getMaxBatch(lcHisMulti);
    }
}
